@media screen and (min-width: 1280px) {
    .container {
        width: 1280px;
    }
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

a {
    color: #666;
    text-decoration: none;
    &:hover {
        text-decoration: none;
    }
}


/* header */
header {
    padding-left: 0!important;
}
.logo {
    background-color: #429ad9;
    img {
        display: block;
        // 图片不进行缩放
        max-width: 100%;
        margin: 0 auto;
    }
    span {
        display: block;
        height: 50px;
        line-height: 50px;
        color: #fff;
        font-size: 18px;
        text-align: center;
    }
}

.nav {
    background-color: #eee;
    border-bottom: 1px solid #ccc;

    a {
        display: block;
        height: 50px;
        line-height: 50px;
        padding-left: 30px;
        font-size: 16px;
        &:hover {
            background-color: #fff;
            color: #333;
        }
        &::before {
            vertical-align: middle;
            padding-right: 5px;
        }
    }
}


.news li {
    float: left;
    width: 25%;
    height: 128px;
    padding-right: 10px;
    margin-bottom: 10px;
    a {
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        background-color: purple;
        img {
            width: 100%;
            height: 100%;
        }
        p {
            position: absolute;
            bottom: 0;
            left: 0;
            background-color: rgba(0, 0, 0, .5);
            font-size: 12px;
            width: 100%;
            height: 40px;
            line-height: 15px;
            padding: 5px 5px;
            color: #fff;
            margin-bottom: 0px;
        }
    }
    // 大新闻
    &:nth-child(1) {
        width: 50%;
        height: 266px;
        a {
            p {
                font-size: 20px;
                height: 40px;
                line-height: 41px;    
                padding: 0 10px;
            }
        }
    }
}


.publish {
    border-top: 1px solid #666;
    .pic {
        margin-top: 10px;
        img {
            width: 100%;
        }
    }
}

.banner {
    img {
        width: 100%;
    }
}

.hot {
    display: block;
    margin-top: 20px;
    padding: 0 10px;
    border: 1px solid #ccc;
    span {
        border-radius: 0;
        margin-bottom: 20px;
    }

    p {
        font-size: 12px;
    }
}


@media screen and (max-width: 991px) {
    .nav li {
        float: left;
        width: 20%;
    }
    article {
        margin-top: 10px;
    }
}
@media screen and (max-width: 767px) {
    .nav li a{
        font-size: 14px;
    }

    .news li{
        width: 50%;
        &:nth-child(1) {
            width: 100%;
        }
    }
    .publish h3 {
        font-size:14px;
    }
}